class HttpApi {
  ///正式服
  // static  String baseUrl => 'https://yytong.cqtyanglao.com/ophApi/';
  ///测试服
  // static  String baseUrl => 'http://192.168.3.30:8081/ophApi/';
  // static String baseUrl => 'https://zhylytest.yytong.com/ophApi/';
  // static  String baseUrl => 'http://xcmz.joyhave.com/ophApi/';

  ///演示使用
  // static  String baseUrl => 'http://47.99.33.70:8095/ophApi/';
  ///民政演示
  static String baseUrl = 'http://saas.yytong.com/ophApi/';
  static String approveUrl = "";

  ///保存，新增客户
  static String get saveClientInfo =>
      "${baseUrl}customerInfo/updateCustomerInfoForWorkApp"; //'customerSubcribe/saveBeanTwo';

  ///消息列表分组
  static String get messageSectionUrl =>
      '${baseUrl}embMsgReceiveGroup/myListBean';

  ///消息列表分组详情列表
  static String get messageRowUrl =>
      '${baseUrl}embMsgReceiveGroup/listBeanBySource';

  ///培训内容列表
  static String get groupBeanList => '${baseUrl}contentManager/listBean';

  ///图片下载链接
  static String get imageDownLoadUrl => '${baseUrl}commonAttachDown/download?id=';

  ///更新接口
  static String get updateApp => '${baseUrl}app/interface/autoUpdate';

  ///员工基本信息
  static String get staffBasicInfo => '${baseUrl}staff/app/getBasicMessage';

  ///个人预约列表
  static String get visitRecordList => '${baseUrl}customerPersonalVisit/listBean';

  ///个人预约 - 确认
  static String get visitRecordConfirm => '${baseUrl}customerPersonalVisit/confirmBean';

  ///团体预约
  static String get orgVisitRecordList => '${baseUrl}customerGroupVisit/listArriveBean';

  ///团体预约确认
  static String get orgVisitRecordConfirm => '${baseUrl}customerGroupVisit/confirmBean';

  ///交接班周列表
  static String get shiftingDutyReport => '${baseUrl}shiftingDutyReport/oriListBean';
  // static String get shiftingDutyReport => '${baseUrl}shiftingDutyReport/listBean';

  ///交接班周列表
  static String get shiftingDutyArea => '${baseUrl}shiftingDutyReport/detail';

  ///交接班刷新
  static String get handoverRefresh => '${baseUrl}shiftingDutyReport/refresh';

  ///交接班内容添加
  static String get shiftingDutyCreate => '${baseUrl}shiftingDutyInfo/createBean';

  ///交接班总结
  static String get shiftingDutyArchive => '${baseUrl}shiftingDutyReport/archive';

  ///添加专家意见
  static String get shiftingDutyRecordCreate => '${baseUrl}shiftingDutyRecord/createBean';

  ///更新专家意见
  static String get shiftingDutyRecordUpdateBean => '${baseUrl}shiftingDutyRecord/updateBean';

  ///删除专家意见
  static String get shiftingDutyRecordDelete => '${baseUrl}shiftingDutyRecord/delete';

  ///追加意见详情
  static String get shiftingDutyRecordDetail => '${baseUrl}shiftingDutyRecord/detail';

  static String get staffTrainingDetail => '${baseUrl}staffTraining/getById';

  ///请假列表
  static String get takeLeave => '${baseUrl}customerAskLeave/listBean';

  ///获取请假天数
  static String get calculateLeaveDays => '${baseUrl}customerAskLeave/calculateLeaveDays';

  ///家属列表
  static String get customerFamily => '${baseUrl}customerFamily/list';

  ///请假返回确认
  static String get confirmLeave => '${baseUrl}customerAskLeave/confirmBean';

  ///新增请假
  static String get createLeave => '${baseUrl}customerAskLeave/createBean';

  static String get detailRecord => '${baseUrl}schedulingRecord/detailRecord';
  static String get login => '${baseUrl}auth/login';

  ///老人列表
  static String get customerElder => '${baseUrl}customerElder/listBean';

  static String get areaCustomerElder => '${baseUrl}serviceAreaRoom/listElderInfoByStaffServiceArea';

  ///新版老人列表
  static String get getCustomerElderBuildingBeans =>
      '${baseUrl}customerElder/getCustomerElderBuildingBeans';

  static String get customerDetail => '${baseUrl}customerElder/detail';
  static String get nurseBeanList => '${baseUrl}nurseRecord/nurseBeanList';
  static String get shiftingDuty => '${baseUrl}shiftingDuty/getLoginershiftingDutyBeanList';
  static String get shiftingDutyHandel => '${baseUrl}shiftingDuty/updateshiftingDutyStatus';
  static String get caseList => '${baseUrl}bizServiceCase/caseList';
  static String get gebanDetail => '${baseUrl}bizServiceCase/pri/detail';
  static String get huibanDetail => '${baseUrl}bizServiceCase/pub/detail';

  ///字典类型查询 (5-两者关系)
  static String get mapType => '${baseUrl}comn/codeValue/list';
  static String get nurseRecord => '${baseUrl}nurseRecord/nurseSave';

  ///待办左侧数据
  static String get myGroupList =>
      '${baseUrl}todoReceive/myElderTodoCount'; //'embMsgModule/myGroupList';

  ///待办右侧数据
  static String get todoReceive => '${baseUrl}todoReceive/myTodoList';

  ///设施长待办右侧数据
  static String get todoGrouperReceive => '${baseUrl}todoReceive/listBean';

  static String get feedBack => '${baseUrl}opinionBack/create';
  static String get contractDetail => '${baseUrl}saleContract/detailByCustomerId';
  static String get detailExamination =>
      '${baseUrl}customerExaminationRecord/detailExamination';
  static String get detailItemFile => '${baseUrl}customerExaminationRecord/detailItemFile';
  static String get uploadExamination =>
      '${baseUrl}customerExaminationRecord/uploadExamination';
  static String get upload => '${baseUrl}commonAttach/upload';

  ///长者生活上传
  static String get createCustomerLifeRecord =>
      'customerLifeRecord/createCustomerLifeRecord';

  ///全部长者列表
  static String get myListBeans => '${baseUrl}customerLifeRecord/myListBeans';

  ///删除体检报告
  static String get deleteExamination =>
      '${baseUrl}customerExaminationRecord/deleteExamination';

  ///本周排班
  static String get detailRecordOneWeek => '${baseUrl}schedulingRecord/detailRecordOneWeek';

  ///健康证，资格证
  static String get staffPicture => '${baseUrl}staffPicture/list';
  static String get saveBean => '${baseUrl}staffPicture/saveBean';
  static String get findPhoeBookList => '${baseUrl}staff/findPhoeBookList';

  ///老人评估报告
  static String get evaluatioenRecordList => '${baseUrl}elderEvaluation/evaluatioenRecordList';

  //新增健康登记
  static String get createBean => '${baseUrl}healthReport/createBean';

  ///体征记录
  static String get healthRecord => '${baseUrl}healthRecord/getHealthRecord';

  ///健康记录
  static String get healthReportList => '${baseUrl}healthReport/listBean';

  //老人生活列表
  static String get customerLifeRecord =>
      '${baseUrl}customerLifeRecord/findLifeRecordBeanList';

  ///整合性照护计划
  static String get servicePlanElder => '${baseUrl}serv/servicePlanElder/detailBean';

  ///整合性照护计划
  static String get servicePlanElderList => '${baseUrl}serv/servicePlanElder/listBean';

  ///服务计划执行详情
  static String get servicePlanRecordDetail =>
      '${baseUrl}bizServicePlanRecord/getServicePlanRecordDetail';

  ///确认执行
  static String get updateServicePlanRecord =>
      '${baseUrl}bizServicePlanRecord/updateServicePlanRecord';

  ///批量执行
  static String get executeServicePlanRecordBatch =>
      '${baseUrl}bizServicePlanRecord/executeServicePlanRecordBatch';

  ///服务组列表
  static String get getAllByCurBranch => '${baseUrl}serviceGroup/getAllByCurBranch';

  ///服务组列表
  static String get listByGroupId => '${baseUrl}serviceGroupUser/listByGroupId';

  ///服药详情
  static String get takeMedicineDetail => '${baseUrl}bizElderTakeMedicineDetail/listBean';

  ///服药提交
  static String get takeMedicineOperate => '${baseUrl}bizElderTakeMedicineDetail/operate';

  ///设施长 待办列表
  static String get appGroupList => '${baseUrl}embMsgModule/appGroupList';

  ///老人时间轴
  static String get elderTimeLine => '${baseUrl}customerTrace/listBean';

  ///获取服务分组及组员
  static String get getAllByCurBranchWithUsers =>
      '${baseUrl}serviceGroup/getAllByCurBranchWithUsers';

  ///评估分配提交
  static String get appAssign => '${baseUrl}elderEvaluation/appAssign';

  ///护理等级
  static String get branchNurseLevel => '${baseUrl}branchNurseLevel/listByBranch';

  ///楼栋
  static String get buildingList => "${baseUrl}building/listBean"; //'floor/list'; //

  static String get areaBuildingList => '${baseUrl}serviceAreaRoom/listBuildingByStaffServiceArea';

  ///楼层
  static String get floorList => "${baseUrl}floor/list";

  ///房间列表
  static String get roomList => "${baseUrl}serveRequest/listRoom";

  ///评估审核提交
  static String get elderEvaluationSend => '${baseUrl}elderEvaluation/audit';

  ///整合性计划分配
  static String get servicePlanElderSend => '${baseUrl}serv/servicePlanElder/launchBean';

  ///个案待办详情
  static String get bizServiceCaseDetail => '${baseUrl}bizServiceCase/pri/detail';

  ///个案审核待办提交
  static String get bizServiceCaseAudit => '${baseUrl}bizServiceCase/audit';

  ///体检项目审核列表详情
  static String get listReviewDetail => '${baseUrl}customerExaminationRecord/listReviewDetail';

  ///体检项目审核提交
  static String get reviewSubmit => '${baseUrl}customerExaminationRecord/reviewSubmit';

  ///体检项目审核提交
  static String get expenseMealsList => '${baseUrl}expenseMeals/list';

  ///零星收入  - 项目类型
  static String get findExpenseTypeList => '${baseUrl}expenseType/findExpenseTypeList';

  ///零星收入  - 收费项目
  static String get findExpenseItemList => '${baseUrl}expenseItem/findExpenseItemList';

  ///零星收入  - 支付方式
  static String get findMealsPayTypeList => '${baseUrl}finIoBill/findMealsPayTypeList';

  ///零星收入  - 提交
  static String get expenseMealsCreate => '${baseUrl}expenseMeals/create';

  ///服务人员区域列表
  static String get serviceAreaList => '${baseUrl}serviceArea/listAreaBean';

  ///获取服务区域
  static String get serviceAreaWrapperList => '${baseUrl}serviceArea/listBean?wrapper=true';

  ///获取登录者是执行计划人的服务计划执行列表
  static String get myPlanRecordBeanList =>
      '${baseUrl}bizServicePlanRecord/myPlanRecordBeanList';

  ///服务人��区域列表
  static String get getHealthRecord => '${baseUrl}healthRecord/getHealthRecord';

  ///
  static String get getRecentlyHealthRecordByCustomer =>
      '${baseUrl}healthRecord/getRecentlyHealthRecordByCustomer';

  ///提交健康测量结果
  static String get submitMedicalExaminationData =>
      '${baseUrl}healthReport/submitMedicalExaminationData';

  ///个推绑定
  static String get geTuiClientIdBind => '${baseUrl}userChannelPoint/bind';

  ///个推解绑
  static String get geTuiClientIdUnBind => '${baseUrl}userChannelPoint/unBind';

  ///报警处理对应数量
  static String get policyWarningCount => '${baseUrl}callInfo/dataStatistics';

  ///报警列表
  static String get policyWarningList => '${baseUrl}callInfo/listBean';

  ///呼叫应答
  static String get policyWarningCalled => '${baseUrl}callInfo/responseCall';

  ///处理报警
  static String get policyWarningDeal => '${baseUrl}callInfo/dealCallInfo';

  ///处理报警
  static String get policyWarningDetail => '${baseUrl}callInfo/detailBean';

  ///活动记录
  static String get activityRecordList => '${baseUrl}activityCustomer/listBean';

  ///参与活动
  static String get signActivity => '${baseUrl}activityCustomer/joinActivity';

  ///出入院列表
  static String get leaveRecordList => '${baseUrl}customerAskLeave/listBean';

  ///新增出入院登记
  static String get addLeave => '${baseUrl}customerAskLeave/createBean';

  ///获取字典数据
  static String get comboData => '${baseUrl}comn/codeValue/list';

  ///点餐记录
  static String get mealRecord => '${baseUrl}bizCustomerOrderInfo/list';

  ///菜单列表
  static String get foodMenuList => '${baseUrl}bizDishManagement/list';

  ///提交菜单
  static String get submitMeal => '${baseUrl}bizCustomerOrderInfo/createBean';

  ///就医记录
  static String get medicalRecord =>
      '${baseUrl}qualityMedicalRecords/getMedicalRecordBeanList';

  ///就医记录登记
  static String get addMedical =>
      '${baseUrl}qualityMedicalRecords/createMedicalRecord';

  static String get imageHead => '${baseUrl}commonAttachDown/download?id=';

  ///上传文件获取文件信息
  static String get uploadFile => '${baseUrl}serveRequest/upload';

  ///解析二维码
  static String get decodeQrcode => '${baseUrl}qrCode/decCode';

  ///床位信息
  static String get bedInfo => '${baseUrl}roomFigure/bedInfo';

  ///床位入住历史
  static String get bedRecord => '${baseUrl}bedCodeRecord/listBean';

  ///楼栋列表
  static String get selectBuildingList => "${baseUrl}building/list";

  static String get getUuid  => "${baseUrl}callInfo/bigScreenUUID";

/*连接webSocket后获取第一次数据*/
  static String get getFirstData => "${baseUrl}callInfo/bigScreenSos";


  ///socket
  static String get dataSocket => "${baseUrl}websocket";

  ///获取报警类型
  static String get warningTypeList => "${baseUrl}callInfo/alarmTypeList";

  ///照护记录详情
  static String get nurseRecordDetail => "${baseUrl}nurseRecord/detail";

  ///排班计划
  static String get schedulingPlan => "${HttpApi.baseUrl}schedulingRecord/listRecord";

  ///首页角标数量
  static String get homeCount => "${baseUrl}app/interface/digitalReminder";

  ///删除照护记录
  static String get deleteNurseRecord => "${baseUrl}nurseRecord/deleteNurseRecord";

  ///部门信息
  static String get officeInfo => "${baseUrl}om/office/list";

  ///部门树状列表
  static String get officeListTree => "${baseUrl}om/office/listTree";


  static String get sysInfo => "${baseUrl}sys/params/getByName";

  ///上传电子档案
  static String get uploadElderCase => '${baseUrl}electronicArchives/createBeans';

  ///长者电子档案
  static String get elderCaseDataList => '${baseUrl}electronicArchives/listByPage';

  ///修改密码
  static String get changePassword => '${baseUrl}sys/user/up/updatePwd';
}

class ServiceOrderApis {
  ///服务单统计
  static String get serviceOrderStatistics =>
      '${HttpApi.baseUrl}serveRequest/listStatusApp';

  ///服务单列表
  static String get serviceOrderList =>
      '${HttpApi.baseUrl}serveRequest/listByPageBean';


  ///服务单列表
  static String get serviceOrderListNoFilter =>
      '${HttpApi.baseUrl}serveRequest/listByPageServeType';

  ///我的服务单列表
  static String get myServiceOrderList =>
      '${HttpApi.baseUrl}serveRequest/listByPageApp';

  ///服务单详情
  static String get serviceOrderDetail =>
      '${HttpApi.baseUrl}serveRequest/detailBean';

  ///服务单接单
  static String get receiveOrder => '${HttpApi.baseUrl}serveRequest/join';

  ///待接单-拒单
  static String get refuseOrder => '${HttpApi.baseUrl}serveRequest/userRefuse';

  ///开始服务
  static String get startService =>
      '${HttpApi.baseUrl}serveRequest/startRequest';

  ///完成服务
  static String get finishService =>
      '${HttpApi.baseUrl}serveRequest/finishOrder';

  ///继续服务
  static String get nextService =>
      '${HttpApi.baseUrl}serveRequest/nextStartRequest';

  ///服务完成-拒单==
  static String get refuseStartedOrder =>
      '${HttpApi.baseUrl}serveRequest/turnRequest';

  ///服务项目列表
  static String get serviceItemList => '${HttpApi.baseUrl}serveType/listType';

  ///服务项目内容列表
  static String get serviceItemContent =>
      '${HttpApi.baseUrl}serveItem/listByPage';

  ///工单年统计
  static String get yearStatistics =>
      '${HttpApi.baseUrl}serveRequest/listStatusHistogram';

  ///部门列表
  static String get departmentList => '${HttpApi.baseUrl}serveUser/listOffice';

  ///创建服务单
  static String get createServiceOrder =>
      '${HttpApi.baseUrl}serveRequest/createBean';

  ///服务过程
  static String get serviceOrderProcess =>
      '${HttpApi.baseUrl}serveCommon/listCommon';

  ///登录人信息
  static String get userInfo => '${HttpApi.baseUrl}serveRequest/humanDetail';

  ///评价内容设置
  static String get ratingConfig => '${HttpApi.baseUrl}serveRatingConfig/list';

  ///提交评价
  static String get submitRating => '${HttpApi.baseUrl}serveRequest/rating';

  ///员工列表
  static String get employeeList => '${HttpApi.baseUrl}serveUser/listUser';

  ///派单-拒单
  static String get officeRefuse =>
      '${HttpApi.baseUrl}serveRequest/officeRefuse';

  ///派单
  static String get sendOrder => '${HttpApi.baseUrl}serveRequest/send';

  ///是否有派单权限
  static String get canSenOrder => '${HttpApi.baseUrl}serveRequest/isPd';

  ///全部员工列表
  static String get wholeEmployeeList => '${HttpApi.baseUrl}serveUser/listByPage';
}

class ServiceExecuteApi {
  ///获取老人服务计划统计信息
  static String get oldServiceStatistics =>
      '${HttpApi.baseUrl}bizServicePlanRecord/sumElderRecord';

  ///根据老人查询服务计划执行记录列表
  static String get oldServiceList =>
      '${HttpApi.baseUrl}bizServicePlanRecord/findRecordByElder';

  ///根据老人查询服务计划执行记录列表
  static String get newOldServiceList =>
      '${HttpApi.baseUrl}bizServicePlanRecord/findRecordByElderNew';

  ///服务计划统计列表
  static String get serviceExecuteStatistics =>
      '${HttpApi.baseUrl}bizServicePlanRecord/myPlanBeanListGroupByCustomer';


}

class PatrolApi {
  ///获取巡防任务
  static String get patrolList =>
      '${HttpApi.baseUrl}guardTaskExecute/interfaces/getExecuteTaskList';

  ///二维码扫描获取详情
  // static String get scanCode =>
  //     '${HttpApi.baseUrl}guardTaskExecute/interfaces/getExecuteTaskPointDetail';

  static String get scanCode =>
      '${HttpApi.baseUrl}guardTaskExecute/interfaces/getExecuteTaskPointDetailNew';

  ///巡防点提交
  static String get submitPatrol =>
      '${HttpApi.baseUrl}guardTaskExecute/interfaces/submit';

  ///异常登记
  static String get uploadAbnormal =>
      '${HttpApi.baseUrl}guardTaskPointExecute/update';

  ///巡防记录
  static String get patrolRecordList =>
      '${HttpApi.baseUrl}guardTaskExecute/list';

  ///巡防记录详情
  static String get patrolRecordDetailList =>
      '${HttpApi.baseUrl}guardTaskExecute/getGuardRecordDetail';

  ///巡防点列表
  static String get patrolSiteList =>
      '${HttpApi.baseUrl}guardPoint/interfaces/getGuardPointList';

  ///更新写入状态
  static String get updatePatrol => "${HttpApi.baseUrl}guardPoint/updateBean";

  ///离线任务获取
  static String get offlineTask => "${HttpApi.baseUrl}guardTaskExecute/interfaces/getOffLineExecuteTaskList";

  ///离线任务上传
  static String get uploadLocalRecord => "${HttpApi.baseUrl}guardTaskExecute/interfaces/offLineSubmit";

  ///获取巡防点数量
  static String get getPatrolNumber => "${HttpApi.baseUrl}guardPoint/interfaces/guardPointWriteInfo";
}

///设备apis
class DevicesApis {
  ///楼栋列表
  static String get buildingList =>
      '${HttpApi.baseUrl}equipmentMaintenanceTask/interfaces/getBuildingList';

  ///设备列表
  static String get equipmentList =>
      '${HttpApi.baseUrl}equipmentManagement/list';

  ///扫码获取任务
  static String get scanGetEquipmentList =>
      '${HttpApi.baseUrl}equipmentMaintenanceTask/interfaces/getTaskList';

  ///获取维保记录
  static String get repairRecord =>
      '${HttpApi.baseUrl}equipmentMaintenanceRecord/interfaces/getRecord';

  ///维保提交
  static String get submitRepair =>
      '${HttpApi.baseUrl}equipmentMaintenanceTask/interfaces/appExecuteTask';
}


///点餐apis
class BookFoodApis {
  ///点餐类型列表
  static String get orderModel => '${HttpApi.baseUrl}orderModel/list';

  ///场所列表
  static String get siteList => '${HttpApi.baseUrl}site/siteInfoList';

  ///菜品列表
  static String get goodList => '${HttpApi.baseUrl}goods/goodsList';

  ///零点菜单
  static String get singleMenu =>"${HttpApi.baseUrl}menus/getMenuBySite";

  ///扫码获取老人
  static String get scanOld => '${HttpApi.baseUrl}order/getElderInfo';

  ///周菜单
  static String get weekMenu => '${HttpApi.baseUrl}menus/getWeekMenu';

  ///提交订单
  static String get submitOrder => '${HttpApi.baseUrl}order/save';
  ///一卡通下单
  static String get oneCardSubmit => '${HttpApi.baseUrl}order/oneCardOrderSave';

  ///支付订单
  static String get payOrder => '${HttpApi.baseUrl}order/creditPay';
  ///一卡通支付
  static String get oneCardPay => '${HttpApi.baseUrl}order/oneCardPay';
  ///周菜单支付
  static String get weekPayOrder => '${HttpApi.baseUrl}order/weekOrderPay';

  ///订单列表
  static String get orderList => '${HttpApi.baseUrl}order/listBean';

  ///周选餐下单
  static String get submitWeekOrder => '${HttpApi.baseUrl}order/saveWeekOrder';

  ///获取一卡通账户信息
  static String get checkAccount => "${HttpApi.baseUrl}finAcct/interfaces/getAcctInfo";

  ///配餐表
  static String get sendFoodTable => "${HttpApi.baseUrl}order/orderListByPersonByDay";

  ///绑定打印机
  static String get bindPrinter => "${HttpApi.baseUrl}printer/save";

  ///获取老人点餐记录统计
  static String get oldOrderRecord => "${HttpApi.baseUrl}order/findMonthPersonOrder";

  ///取消订餐
  static String get cancelFood => "${HttpApi.baseUrl}order/orderRefundAll";

  ///周点餐信息
  static String get weekOrderInfo => "${HttpApi.baseUrl}order/getOrderWeekByOrderId";

  ///员工列表
  static String get employeeList => "${HttpApi.baseUrl}staff/listBean";

  ///临时人员
  static String get tempList => "${HttpApi.baseUrl}order/getTempUserList";
}


